import request from '@/utils/request'

// 查询充值套餐列表
export function listCombo(query) {
  return request({
    url: '/combo/combo/list',
    method: 'get',
    params: query
  })
}

// 查询充值套餐详细
export function getCombo(comboId) {
  return request({
    url: '/combo/combo/' + comboId,
    method: 'get'
  })
}

// 新增充值套餐
export function addCombo(data) {
  return request({
    url: '/combo/combo',
    method: 'post',
    data: data
  })
}

// 修改充值套餐
export function updateCombo(data) {
  return request({
    url: '/combo/combo',
    method: 'put',
    data: data
  })
}

// 删除充值套餐
export function delCombo(comboId) {
  return request({
    url: '/combo/combo/' + comboId,
    method: 'delete'
  })
}

// 用户套餐充值
export function userRecharge(data) {
  return request({
    url: '/system/user/recharge',
    method: 'post',
    data: data
  })
}
// 用户自定义充值
export function userCustomRecharge(data) {
  return request({
    url: '/system/user/selfRecharge',
    method: 'post',
    data: data
  })
}